﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EventManager.Model.Entites
{
    public class Events
    {
        [Key]
        public Guid Id { get; set; }

        [Required]
        [MaxLength(400)]
        public string Name { get; set; }

        [Required]
        public string Description { get; set; }
        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }
        public ICollection<Categories> Categories { get; set; }

        public Events()
        {
            Categories = new HashSet<Categories>();
        }
    }
}
